package com.example.coursehub.repository;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.example.coursehub.entity.WrongQuestionBank;

public interface WrongQuestionBankRepository extends JpaRepository<WrongQuestionBank, String>, JpaSpecificationExecutor<WrongQuestionBank> {
    // 修正方法命名以匹配实体结构
    Optional<WrongQuestionBank> findByUser_UserIdAndCourse_CourseId(String userId, String courseId);
}